/**
 * 给一个三位小数，输出，要求不输出结尾多余的零
 * 直接用字符串判断即可
 */
#include <bits/stdc++.h>
#include <bits/extc++.h>
using namespace std;

using llt = long long;
using vi = vector<int>;
using vll = vector<llt>;
using pii = pair<int, int>;
using pll = pair<llt, llt>;

string S;

string proc(){
    int n = S.length();
    int k = n - 1;
    while(S[k] == '0') --k;
    if(S[k] == '.') --k;
    return S.substr(0, k + 1);
}

void work(){
    cin >> S;
    cout << proc() << endl;
    return;
}


int main(){
#ifndef ONLINE_JUDGE
    freopen("z.txt", "r", stdin);
#endif
    ios::sync_with_stdio(0); cin.tie(0); cout.tie(0);	
    int nofkase = 1;
	// cin >> nofkase;
	while(nofkase--) work();
	return 0;
}